<style>
#tabsI {
	float:left;
	width:760px;
	background:#FFFFFF;
	font-size:100%;
	line-height:normal;
	border-bottom:1px solid #DD740B;
	height:24px;
}
#tabsI ul {
	margin:0;
	padding:10px 10px 0 50px;
	list-style: none;
	height:24px;
}
#tabsI li {
	display:inline;
	margin:0;
	padding:0;
	height:24px;
}
#tabsI a {
	float:left;
	background: url("<{$tpl_img_path}>default/left.gif") no-repeat left top;
	margin:0;
	padding:0 0 0 5px;
	text-decoration:none;
}
#tabsI a span {
	float:left;
	display:block;
	background:url("<{$tpl_img_path}>default/right.gif") no-repeat right top;
	padding:5px 15px 4px 6px;
	color:#FFF;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
#tabsI a span {float:none;}
/* End IE5-Mac hack */
#tabsI a:hover span {
	color:#FFF;
}
#tabsI a:hover {
	background-position:0% -42px;
}
#tabsI a:hover span {
	background-position:100% -42px;
}

#tabsI #current a {
	background-position:0% -42px;
}
#tabsI #current a span {
	background-position:100% -42px;
}
.top-right-bj {
	background-attachment: fixed;
	background-image: url(<{$tpl_img_path}>default/search_03.jpg);
	background-repeat: no-repeat;
	background-position: right top;
}
.top-search-bg {
	background-color: #CD4700;
}
.top-up-left
{
background:url("<{$tpl_img_path}>default/left_top.jpg") no-repeat bottom left;
}


</style>
<script language="JavaScript">
<!--
function check_keywords(){
	var keywords = document.formsearch.skeyword.value;
	if(keywords=="" || keywords=="输入关键字"){
		alert("请输入搜索关键字");
		document.formsearch.skeyword.focus();
		return false;
	}else{
		return true;
	}
}
//-->
</script>
<table width="<{$page_width}>" height="155" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td>
	<{include file="`$ThemeName`/element.top.html"}>
      <table width="<{$page_width}>" border="0" cellpadding="0" cellspacing="0">
	  <tbody>
        <tr> 
          <td align="left" valign="bottom" class="top-up-left" width="188"><strong><font color="#FFFF99"><{$sitebannerword}></font></strong></td>
          <td width="760">
		  <div id="tabsI">
    	 <div style="float:left;width:auto;height:auto;">
        	 <a href="<{$UrlContainer.index}>"><span class="headnav">首页</span></a>
		 <a href="<{$smarty.const.URL}>offer/list.php?filter=<{$TradeTypes[2]}>"><span class="headnav">供应</span></a>
				<a href="<{$smarty.const.URL}>offer/list.php?filter=<{$TradeTypes[1]}>"><span class="headnav">求购</span></a>		
				<a href="<{$smarty.const.URL}>product/list.php"><span class="headnav">产品库</span></a>
				<a href="<{$smarty.const.URL}>company/list.php"><span class="headnav">公司库</span></a></div>
				<div style="float:left;width:auto;height:auto;">
				<a href="<{$UrlContainer.news}>"><span class="headnav">资讯</span></a>
		   <a href="<{$UrlContainer.fair}>"><span class="headnav">展会</span></a>
		  <a href="<{$smarty.const.URL}>offer/list.php?filter=<{$TradeTypes[9]}>"><span class="headnav">招投标</span></a>
      </div>
    </div>
	<div style="border-bottom:1px solid #DD740B;height:3px;">&nbsp;</div>
		   </td>
        </tr>
		</tbody>
        <tr class="top-search-bg"> 
          <td colspan="2" class="top-right-bj"> 
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="5%"><img src="<{$tpl_img_path}>default/left_bottom.jpg" width="121" height="64"></td>
                <td width="95%">
				<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td colspan="2">
					  <script language="javascript">
					  function goSearch(modelId){
						  if(modelId=="3"){
							document.formsearch.action= "<{$SiteUrl}>company.php";
							}else if (modelId=="4")
							{
							document.formsearch.action= "<{$SiteUrl}>product/list.php";
							}else{
							document.formsearch.action= "<{$SiteUrl}>offer/list.php";
							}
					  }
					  </script>
					  <form action="<{$HeaderFormAction}>" method="get" name="formsearch" title="搜索">
					  <input type="hidden" name="searchkeywords" value="1" />
					  <input type="hidden" name="ac" value="list" />
					  <table width="100%" border="0" cellpadding="0" cellspacing="5">
                          <tr> 
                            <td width="11%" height="22" class="font14white">搜索：</td>
                            <td width="41%"><input name="skeyword" type="text" id="skeyword" size="35" value="<{$smarty.get.keyword|default:"输入关键字"}>" alt="输入关键字搜索信息" onfocus="if(this.value == '输入关键字'){this.value = ''}" onblur="if(this.value == ''){this.value = '输入关键字'}" /></td>
                            <td width="14%"> 
							<select name="searchtype" onchange="goSearch(this.options[selectedIndex].value);">
                                <option value="1" <{if $AmountTypeLi==1}>selected<{/if}>>求购信息</option>
                                <option value="2" <{if $AmountTypeLi==2}>selected<{/if}>>供应信息</option>
                                <option value="3" <{if $AmountTypeLi==3}>selected<{/if}>>公司库</option>
								<option value="4" <{if $AmountTypeLi==4}>selected<{/if}>>商品库</option>
                              </select> 
							  </td>
                            <td width="13%" align="center"><input type="image" src="<{$tpl_img_path}>default/icon_search01.gif" width="76" height="22" onclick="return check_keywords();" ></td>
                            <td width="21%"><a href="<{$SiteUrl}>advsearch.php" target="_top"><img src="<{$tpl_img_path}>default/icon_search02.gif" width="76" height="22" border="0"></a></td>
                          </tr>
                        </table>
						</form>
					  </td>
                    </tr>
                    <tr>
                      <td width="72%">
					  <span class="font12white">关键词:</span><{ul_get_tag class="linkwhite12"}><a href="<{$SiteUrl}>tag.php" class="linkwhite12">更多</a>
                      </td>
                      <td width="28%">
					  <table width="210" border="0" cellspacing="2" cellpadding="2">
                          <tr> 
                            <td width="15"><img src="<{$tpl_img_path}>default/icon_search03.gif" width="15" height="15"></td>
                            <td width="50"><a href="<{$UrlContainer.common}>help.php" target="_top"  class="linkwhite12">如何搜</a></td>
                            <td width="15"><img src="<{$tpl_img_path}>default/icon_search03.gif" width="15" height="15"></td>
                            <td width="50"><a href="<{$SiteUrl}>help.php" target="_top"  class="linkwhite12">如何买</a></td>
                            <td width="15"><img src="<{$tpl_img_path}>default/icon_search03.gif" width="15" height="15"></td>
                            <td width="40"><a href="<{$SiteUrl}>help.php" target="_top"  class="linkwhite12">如何卖</a></td>
                          </tr>
                        </table>
					  </td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>